//
//  Extension+UIImageView.swift
//  WLWeibo
//
//  Created by Devil on 16/8/11.
//  Copyright © 2016年 Wiliam. All rights reserved.
//

import UIKit

extension UIImageView{
    
    convenience init(imgName: String) {
        
        self.init(image:UIImage(named: imgName))
        
    }
    
    func wl_setImageWithString(imgName:String?,placeholderImgName:String){
    
        self.sd_setImageWithURL(NSURL(string: imgName ?? ""), placeholderImage: UIImage(named: placeholderImgName))
    
    }
    
}
